package com.lzh.template.model.dto.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @author luzhiheng
 * @description 用户注册Dto
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterDto {

    private Long id;

    @NotEmpty(message = "邮箱不能为空")
    private String email;

    @NotEmpty(message = "用户名不能为空")
    private String userName;

    @NotEmpty(message = "昵称不能为空")
    private String nickName;

    @NotEmpty(message = "密码不能为空")
    private String password;

    @NotEmpty(message = "验证码不能为空")
    private String code;
}
